﻿@model ZhongheCms.Models.GswTblMember
@{
	
    Layout = "~/Views/Shared/_LayoutWebsite.cshtml";
    string mystate = "[审核中]";
    if (Model.AuditFlag == 1)
    {
        mystate = "";
    }
    string mysel = "";
}
@section head
{
    
    <link rel="stylesheet" href="/Assets/webuploader/webuploader.css" />
    <link href="/assets/sunjob/css/user.css" rel="stylesheet" />
    <link href="/assets/css/error.css" rel="stylesheet" />
    <script src="/assets/js/jquery.validate.min.js"></script>
    <script src="/assets/js/jquery.validate.unobtrusive.min.js"></script>
    <script src="/Assets/webuploader/webuploader.js" type="text/javascript"></script>
       <script charset="utf-8" src="/kindeditor/kindeditor-min.js" type="text/javascript"></script>
    <script charset="utf-8" src="/kindeditor/lang/zh_CN.js" type="text/javascript"></script>
     <link rel="stylesheet" href="/kindeditor/themes/default/default.css" />
    <script type="text/javascript">
        KindEditor.ready(function (K) {
            var editor1 = K.create('#MemberBrief', {
                cssPath: '/kindeditor/plugins/code/prettify.css',
                uploadJson: '/kindeditor/upload_json.ashx',
                fileManagerJson: '/kindeditor/file_manager_json.ashx',
                items: [
                    'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
                    'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
                    'insertunorderedlist', '|', 'emoticons',  'link'],


            });

        });
       
        jQuery(function ($) {
          
            var uploader = WebUploader.create({

                resize: true,

                // 自动上传。
                auto: true,

                // swf文件路径
                swf: '/Assets/webuploader/Uploader.swf',

                // 文件接收服务端。
                server: '/GsnService/UploadFileToQiniu/',

                // 选择文件的按钮。可选。
                // 内部根据当前运行是创建，可能是input元素，也可能是flash.
                pick: '#picker'
            });

            // 当有文件添加进来的时候
            //uploader.on('fileQueued', function (file) {
            //    $list.append('<div id="' + file.id + '" class="item">' +
            //    '<h4 class="info">' + file.name + '</h4>' +
            //    '<p class="state">等待上传...</p>' +
            //    '</div>');
            //});

            // 文件上传过程中创建进度条实时显示。
            uploader.on('uploadProgress', function (file, percentage) {
                var $li = $('#' + file.id),
                    $percent = $li.find('.progress .progress-bar');
                // 避免重复创建
                if (!$percent.length) {
                    $percent = $('<div class="progress progress-striped active">' +
                        '<div class="progress-bar" role="progressbar" style="width: 0%">' +
                        '</div>' +
                        '</div>').appendTo($li).find('.progress-bar');
                }
                $li.find('p.state').text('上传中');

                $percent.css('width', percentage * 100 + '%');
            });
            uploader.on('uploadSuccess', function (file) {
                $('#' + file.id).find('p.state').text('已上传');
            });
            uploader.on('uploadError', function (file) {
                $('#' + file.id).find('p.state').text('上传出错');
            });
            // 完成上传完了，成功或者失败，先删除进度条。
            uploader.on('uploadComplete', function (file) {
                $('#' + file.id).find('.progress').fadeOut();
                //alert(file.name);
            });

            //获取返回值
            uploader.on('uploadAccept', function (file, response) {
                //response.FileName
                //  $('#fName').val(response.FileName);
                $('#MemberPic').val(response.SavePath + response.SaveName);
                $('#img').attr("src", response.SavePath + response.SaveName);
            });

        });
    </script>
}
<div class="container_24 clearfix" id="orderWrapper">
      <table width="1170" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td height="44" align="left" valign="top">
                <table width="1170" height="36" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td align="left" valign="middle" class="ling">首页　&gt; <a href="/SunJob/MemberCenter">会员中心</a>&gt;个人资料修改</td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="left" valign="top">
                <table width="1170" border="0" cellpadding="0" cellspacing="0">
                    <tr align="left" valign="top">
                        <td width="190">
                            <table width="190" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td align="left" valign="top">
                                        <table width="190" height="102" border="0" cellpadding="0" cellspacing="1" style="background-color: #FFCC97">
                                            <tr>
                                                <td width="188" height="100" align="center" valign="middle" style="background-image: url(/assets/sunjob/images/left-huiyuanbg.jpg)">
                                                    <table width="150" border="0" cellpadding="0" cellspacing="0">
                                                        <tr>
                                                            <td height="22" align="left" valign="middle" class="name">
                                                                <img src="/assets/sunjob/images/left-huiyuanpic.jpg" width="24" height="18" align="absmiddle">&nbsp; @Model.MemberName</td>
                                                        </tr>
                                                        <tr>
                                                            <td height="22" align="left" valign="middle" class="ling">积分：@Model.MemberPoint</td>
                                                        </tr>
                                                        <tr>
                                                            <td height="22" align="left" valign="middle" class="ling">@Model.MemberType <span>@mystate</span></td>
                                                        </tr>
                                                        <tr>
                                                            <td height="22" align="left" valign="middle" class="leftxiu"><a href="/SunJob/UserInfoEdit/@Model.Id">修改个人资料</a></td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="10" align="left" valign="top"></td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top">
                                        <table width="190" height="234" border="0" cellpadding="0" cellspacing="1" style="background-color: #FFCC97">
                                            <tr>
                                                <td align="center" valign="top" bgcolor="#FFFFFF">
                                                    <table width="188" border="0" cellpadding="0" cellspacing="0">
                                                        <tr>
                                                            <td align="left" valign="top">
                                                                <img src="/assets/sunjob/images/left-tongzhi.jpg" width="188" height="31"></td>
                                                        </tr>
                                                        <tr>
                                                            <td align="center" valign="top">
                                                                <table width="154" border="0" cellpadding="0" cellspacing="0">
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a href="/SunJob/UserMsg/@Model.Id">录取通知</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a href="/SunJob/UserMsg1/@Model.Id">领薪通知</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a  href="/SunJob/MemberTime/@Model.Id">我的时间</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a  href="/SunJob/MemberJob/@Model.Id">我的工作</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a  href="/SunJob/MemberHelpAdd/@Model.Id">需求发布</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a href="/SunJob/MemberHelpList/@Model.Id">我的需求</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a  href="/SunJob/MemberOrder/@Model.Id">我的订单</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a  href="/SunJob/MemberJobpub/@Model.Id">职位发布</a></td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="10" align="left" valign="top"></td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top">
                                        <table width="190" height="128" border="0" cellpadding="0" cellspacing="1" style="background-color: #FFCC97">
                                            <tr>
                                                <td align="center" valign="top" style="background-color: #FFFFFF">
                                                    <table width="188" border="0" cellpadding="0" cellspacing="0">
                                                        <tr>
                                                            <td align="left" valign="top">
                                                                <img src="/assets/sunjob/images/left-geren.jpg" width="188" height="31"></td>
                                                        </tr>
                                                        <tr>
                                                            <td align="center" valign="top">
                                                                <table width="154" border="0" cellpadding="0" cellspacing="0">
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a  href="/SunJob/UserInfoEdit/@Model.Id">个人资料</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a  href="/SunJob/ChangePassword/@Model.Id">修改密码</a></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" align="left" valign="middle">
                                                                            <img src="/assets/sunjob/images/left-tongzhiline.jpg" width="154" height="1"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="27" align="center" valign="middle" class="leftmenu"><a  href="/SunJob/MemberPoint/@Model.Id">我的积分</a></td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left" valign="top">&nbsp;</td>
                                </tr>
                            </table>
                        </td>
                        <td width="15">&nbsp;</td>
                        <td>
                             
                             <table width="965" height="498" border="0" cellpadding="0" cellspacing="1" style="background-color: #FEA700;">
                                <tr>
                                    <td align="center" valign="top" style="background-color: #FFFFFF">
                                        <form action="/SunJob/UserInfoEdit/@Model.Id" method="post">
                                        <table  width="965"  border="0" cellpadding="0" cellspacing="0">
                                            
                                             <tr align="center" valign="middle" bgcolor="#FFFFFF" class="leftmenu" height="50">
                                                    <td style="text-align: right;padding-right: 5px;width:20%">
                                                   注册时间
                                                    </td>
                                                 <td style="text-align: left;width:80%">
                                                      @Model.RegDate.ToShortDateString()
                                                 </td>
                                                   
                                                </tr>
                                            <tr align="center" valign="middle" bgcolor="#FFFFFF" class="leftmenu" height="50">
                                                <td style="text-align: right;padding-right: 5px;width:20%">
                                                    用户类别
                                                </td>
                                                <td style="text-align: left;width:80%">
                                                    @Model.MemberType
                                                </td>
                                                   
                                            </tr>
                                            <tr align="center" valign="middle" bgcolor="#FFFFFF" class="leftmenu" height="50">
                                                <td style="text-align: right;padding-right: 5px;width:20%">
                                                    就读学校
                                                </td>
                                                <td style="text-align: left;width:80%">
                                                    <select id="SchoolName" name="SchoolName" style="width: 400px; height: 30px">

                                                        @foreach (var item in Model.BaseInfos.Where(x => x.FunctionId == 77))
                                                        {
                                                            mysel = "";
                                                            if (!string.IsNullOrEmpty(Model.SchoolName) && Model.SchoolName.Trim() == item.MasterType.Trim())
                                                            {
                                                                mysel = "selected";
                                                            }
                                                            <option value="@item.MasterType" @mysel>@item.MasterType</option>
                                                        }
                                                    </select>
                                                </td>
                                                   
                                            </tr>
                                            <tr align="center" valign="middle" bgcolor="#FFFFFF" class="leftmenu" height="50">
                                                <td style="text-align: right;padding-right: 5px;width:20%">
                                                    真实姓名
                                                </td>
                                                <td style="text-align: left;width:80%">
                                                    <input class="textIpt" data-val="true" data-val-required="真实姓名不允许为空"   id="MemberName"  name="MemberName" type="text" value="@Model.MemberName" autocomplete="off">
                                                    <span class="field-validation-valid " data-valmsg-for="MemberName" data-valmsg-replace="true"></span>
                                                </td>
                                                   
                                            </tr>
                                            <tr align="center" valign="middle" bgcolor="#FFFFFF" class="leftmenu" height="50">
                                                <td style="text-align: right;padding-right: 5px;width:20%">
                                                    性别
                                                </td>
                                                <td style="text-align: left;width:80%">
                                                    <select id="Gender" name="Gender" style="width: 200px; height: 30px">
                                                        @if (!string.IsNullOrEmpty(Model.Gender))
                                                        {
                                                            <option value="@Model.Gender">@Model.Gender</option>
                                                        }
                                                        <option value="男">男</option>
                                                        <option value="女">女</option>
                                                    </select>
                                                </td>
                                                   
                                            </tr>
                                            <tr align="center" valign="middle" bgcolor="#FFFFFF" class="leftmenu" height="50">
                                                <td style="text-align: right;padding-right: 5px;width:20%">
                                                    身高
                                                </td>
                                                <td style="text-align: left;width:80%">
                                                    <input class="textIpt" id="BodyLength"  name="BodyLength" type="text" value="@Model.BodyLength" data-val="true"  data-val-regex="身高数据不正确"
                                                           data-val-regex-pattern="^(-?\d+)(\.\d+)?$" data-val-required="身高数据不正确" autocomplete="off">
                                                    <span class="field-validation-valid " data-valmsg-for="BodyLength" data-valmsg-replace="true"></span>
                                                </td>
                                                   
                                            </tr>
                                            <tr align="center" valign="middle" bgcolor="#FFFFFF" class="leftmenu" height="50">
                                                <td style="text-align: right;padding-right: 5px;width:20%">
                                                    学历
                                                </td>
                                                <td style="text-align: left;width:80%">
                                                    <select id="Education" name="Education" style="width: 200px; height: 30px">
                                                        @foreach (var item in Model.BaseInfos.Where(x => x.FunctionId == 78))
                                                        {
                                                            mysel = "";
                                                            if (!string.IsNullOrEmpty(Model.Education) && Model.Education.Trim() == item.MasterType.Trim())
                                                            {
                                                                mysel = "selected";
                                                            }
                                                            <option value="@item.MasterType" @mysel>@item.MasterType</option>
                                                        }

                                                    </select>
                                                </td>
                                                   
                                            </tr>
                                            <tr align="center" valign="middle" bgcolor="#FFFFFF" class="leftmenu" height="50">
                                                <td style="text-align: right;padding-right: 5px;width:20%">
                                                    入学年份
                                                </td>
                                                <td style="text-align: left;width:80%">
                                                    <input class="textIpt" id="EnterSchoolYear" maxlength="4" name="EnterSchoolYear" type="text" value="@Model.EnterSchoolYear" data-val="true" data-val-number="入学年份不正确" data-val-regex="入学年份不正确"
                                                           data-val-regex-pattern="^(-?\d+)(\.\d+)?$" data-val-required="入学年份不正确" autocomplete="off">
                                                    <span class="field-validation-valid " data-valmsg-for="EnterSchoolYear" data-valmsg-replace="true"></span>
                                                </td>
                                                   
                                            </tr>
                                            <tr align="center" valign="middle" bgcolor="#FFFFFF" class="leftmenu" height="50">
                                                <td style="text-align: right;padding-right: 5px;width:20%">
                                                    所学专业
                                                </td>
                                                <td style="text-align: left;width:80%">
                                                    <input style="width: 400px; height: 30px"  id="Major"  name="Major" type="text" value="@Model.Major" autocomplete="off">
                                                </td>
                                                   
                                            </tr>
                                            <tr align="center" valign="middle" bgcolor="#FFFFFF" class="leftmenu" height="50">
                                                <td style="text-align: right;padding-right: 5px;width:20%">
                                                    联系电话
                                                </td>
                                                <td style="text-align: left;width:80%">
                                                    <input class="textIpt" id="MemberTel"  name="MemberTel" type="text" value="@Model.MemberTel" data-val="true" data-val-required="联系电话不允许为空" autocomplete="off">
                                                    <span class="field-validation-valid " data-valmsg-for="MemberTel" data-valmsg-replace="true"></span>
                                                </td>
                                                   
                                            </tr>
                                            <tr align="center" valign="middle" bgcolor="#FFFFFF" class="leftmenu" height="50">
                                                <td style="text-align: right;padding-right: 5px;width:20%">
                                                    QQ
                                                </td>
                                                <td style="text-align: left;width:80%">
                                                    <input class="textIpt"  id="MemberQQ" name="MemberQQ" type="text" value="@Model.MemberQQ" autocomplete="off">
                                                </td>
                                                   
                                            </tr>
                                            <tr align="center" valign="middle" bgcolor="#FFFFFF" class="leftmenu" height="50">
                                                <td style="text-align: right;padding-right: 5px;width:20%">
                                                    电子邮件
                                                </td>
                                                <td style="text-align: left;width:80%">
                                                    <input style="width: 400px; height: 30px"  id="MemberEmail"  name="MemberEmail" type="text" value="@Model.MemberEmail" autocomplete="off">
                                                </td>
                                                   
                                            </tr>
                                            <tr align="center" valign="middle" bgcolor="#FFFFFF" class="leftmenu" height="50">
                                                <td style="text-align: right;padding-right: 5px;width:20%">
                                               头像上传
                                                </td>
                                                <td style="text-align: left;width:80%">
                                                  <div class="upload-content" style="padding-top: 10px;padding-left: 10px">
                         <img width="100" height="100" alt="100x100" id="img" src="@Model.MemberPic" />


                                            <div class="btns" style="margin-top: 5px">
                                                <div id="picker">
                                                    点击选择图片
                                                </div>

                                            </div>
                                            <input type="hidden" id="MemberPic" name="MemberPic" value="@Model.MemberPic" />
                    </div>
                                                </td>
                                                   
                                            </tr>
                                            <tr align="center" valign="middle" bgcolor="#FFFFFF" class="leftmenu" >
                                                <td style="text-align: right;padding-right: 5px;width:20%">
                                                    自我介绍
                                                </td>
                                                <td style="text-align: left;width:80%">
                                                  <textarea id="MemberBrief" name="MemberBrief" style="height: 200px;width: 500px">@Model.MemberBrief</textarea>
                                                </td>
                                                   
                                            </tr>
                                            <tr>
                                                <td colspan="2" style="text-align: center">
                                                     <div class="submitWrapper3">
                        <input type="submit" value="确认并提交" class="button button01" />
                    </div>
                    <div ><span style="color: red">@ViewBag.msg</span> </div>
                                                </td>
                                            </tr>
                                        </table>
                                            </form>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </div>


